package cc.eddic.practice.spring.dto;


import cc.eddic.practice.spring.domain.Exam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExamAddRequest {
    private String name;
    private Long timeLimit;

    public Exam as() {
        return new Exam(this.name, this.timeLimit);
    }
}
